package cn.itcast.scala.course05

/**
  * Set集合 - 无序的 不可重复的集合
  * create by zhangtian on 2019/1/3
  */
object SetApp extends App {
  val set = Set(1,2,3,4,3,2)
  println(set)

  // 不可变Set
  val set1 = scala.collection.mutable.Set[Int]()
  set1 += 1
  set1 ++= Set(5,4,3,2)
}
